export type CmOrderActionParams = {
  current: number;
  size: number;
  appId: string;
};

export type CmOrderActionItem = {
  id: string;
  orderId: string;
  businessId: string;
  customerId: string;
  appId: string;
  appName: string;
  productId: string;
  skucode: string;
  orderInstanceId: string;
  status: string;
  activity: string;
  reqTimeStamp: string;
};

export interface CmOrderActionResult {
  total: number;
  items: CmOrderActionItem[];
}

export type CmOrderActionDetailParams = {
  id: string;
};

export interface CmOrderActionDetailResult {
  id: string;
  orderId: string;
  customerId: string;
  businessId: string;
  productId: string;
  appId: string;
  appName: string;
  packageId: string;
  packageType: string;
  skucode: string;
  expireTime: string;
  orderInstanceId: string;
  activity: string;
  instanceStatus: string;
  status: string;
}

export type CmTenantAppParams = {
  current: number;
  size: number;
  appId: string;
};

export type CmTenantAppItem = {
  orderInstanceId: string;
  tenantName: string;
  tenantCode: string;
  customerId: string;
  appId: string;
  appName: string;
  cmAppId: string;
  clientId: string;
  clientSecret: string;
  tenantAppCode: string;
  packageType: string;
  skucode: string;
  status: string;
  expireTime: string;
};

export interface CmTenantAppResult {
  total: number;
  items: CmTenantAppItem[];
}

export type ImcSyncLogParams = {
  startTime: string;
  endTime: string;
  labels: any;
  keywords: string;
  lineNum: string;
  isDesc: boolean;
  searchType: string;
  limit: number;
  highlight: boolean;
  isCount: boolean;
};

export type ImcSyncLogItem = {
  appId: string;
  content: any;
  description: string;
  duration: number;
  logTime: string;
  method: string;
  module: string;
  operationname: string;
  params: any;
  srcip: string;
  status: string;
  tag: string;
  tenantCode: string;
  uri: string;
};

export type ImcSyncLogRespItem = {
  content: string;
  labels: ImcSyncLogItem;
};
